<template lang=pug>
    li.product
        section
            div.lineTwo
                img(:src="product.ej_good_picture_url",width="100",height=100)
                div
                    div.title(v-text="'标题:'+product.ej_good_title")
                    div.group
                        div.number(v-text="'数量:'+product.ej_good_number")
                        div.price(v-text="'价格:'+product.ej_good_rent_price+'/'+product.ej_good_rent_unit+'/'+product.ej_good_rent_time+product.ej_good_rent_time_unit")
                    div.group
                        div.owner(v-text="'所有人:'+product.ej_good_owner")
                        div.address(v-text="'地址:'+product.ej_good_contact_address")
            div.bottom
                span#time(v-text="'发布时间:'+product.ej_good_publish_time")
                router-link(:to="'./shopDetail?id='+product.ej_good_id") 查看详情
</template>

<script>
    export default {
        name: 'product',
        data () {
            return {}
        },
        props:['product'],
        components: {}
    }
</script>

<style lang="stylus" scoped>
    .product
        width 100%
        .lineTwo
            display flex
            & div.group
                display flex
                &>div
                    text-align center
</style>
